package com.defines.ming.demo.model;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

import static com.sun.javafx.print.Units.MM;

public class ExpenseHeader {
   private   long headerId ;
     private String expenseNum;
   private String applicant;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private  Date applyTime;
    private  long projectId;
    private  String expenseDesc;
    private String status;
    private   long totalAmount;
    private String approvalNode;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date approvalTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime ;
    private String approver ;
    private String createdBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date creationDate ;
   private String lastUpdatedBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastUpdateDate ;
    private   long objectVersionNumber ;

    @Override
    public String toString() {
        return "ExpenseHeader{" +
                "headerId=" + headerId +
                ", expenseNum='" + expenseNum + '\'' +
                ", applicant='" + applicant + '\'' +
                ", applyTime='" + applyTime + '\'' +
                ", projectId=" + projectId +
                ", expenseDesc='" + expenseDesc + '\'' +
                ", status='" + status + '\'' +
                ", totalAmount=" + totalAmount +
                ", approvalNode='" + approvalNode + '\'' +
                ", approvalTime=" + approvalTime +
                ", payTime=" + payTime +
                ", approver='" + approver + '\'' +
                ", createdBy='" + createdBy + '\'' +
                ", creationDate=" + creationDate +
                ", lastUpdatedBy='" + lastUpdatedBy + '\'' +
                ", lastUpdateDate=" + lastUpdateDate +
                ", objectVersionNumber=" + objectVersionNumber +
                '}';
    }

    public long getHeaderId() {
        return headerId;
    }

    public void setHeaderId(long headerId) {
        this.headerId = headerId;
    }

    public String getExpenseNum() {
        return expenseNum;
    }

    public void setExpenseNum(String expenseNum) {
        this.expenseNum = expenseNum;
    }

    public Date getApplyTime() {
        return applyTime;
    }

    public String getApplicant() {
        return applicant;
    }

    public void setApplicant(String applicant) {
        this.applicant = applicant;
    }


    public void setApplyTime(Date applyTime) {
        this.applyTime = applyTime;
    }


    public long getProjectId() {
        return projectId;
    }

    public void setProjectId(long projectId) {
        this.projectId = projectId;
    }

    public String getExpenseDesc() {
        return expenseDesc;
    }

    public void setExpenseDesc(String expenseDesc) {
        this.expenseDesc = expenseDesc;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public long getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(long totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getApprovalNode() {
        return approvalNode;
    }

    public void setApprovalNode(String approvalNode) {
        this.approvalNode = approvalNode;
    }

    public Date getApprovalTime() {
        return approvalTime;
    }

    public void setApprovalTime(Date approvalTime) {
        this.approvalTime = approvalTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public String getApprover() {
        return approver;
    }

    public void setApprover(String approver) {
        this.approver = approver;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    public String getLastUpdatedBy() {
        return lastUpdatedBy;
    }

    public void setLastUpdatedBy(String lastUpdatedBy) {
        this.lastUpdatedBy = lastUpdatedBy;
    }

    public Date getLastUpdateDate() {
        return lastUpdateDate;
    }

    public void setLastUpdateDate(Date lastUpdateDate) {
        this.lastUpdateDate = lastUpdateDate;
    }

    public long getObjectVersionNumber() {
        return objectVersionNumber;
    }

    public void setObjectVersionNumber(long objectVersionNumber) {
        this.objectVersionNumber = objectVersionNumber;
    }
}
